-- GENERATED SPELL FOR [Hederine Initiate] --


function spell0_7461(pUnit, Event) --@Dominate Mind,n/a--
pUnit:FullCastSpellOnTarget(15859,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7461', 7000, 1)
end

function spell1_7461(pUnit, Event) --@Immolate,n/a--
pUnit:FullCastSpellOnTarget(17883,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7461', 23000, 1)
end

function spell2_7461(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(15232,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7461', 3000, 1)
end

function Sorts_7461(pUnit, Event)
local choix_sorts_7461 = math.random(0, 2)
if choix_sorts_7461 == 0 then
pUnit:RegisterEvent('spell0_7461', 1, 1)
end
if choix_sorts_7461 == 1 then
pUnit:RegisterEvent('spell1_7461', 1, 1)
end
if choix_sorts_7461 == 2 then
pUnit:RegisterEvent('spell2_7461', 1, 1)
end
end

function mob7461_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7461', math.random(1500, 3000), 1)
end

function mob7461_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7461_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7461_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7461, 1, 'mob7461_Action')
RegisterUnitEvent(7461, 2, 'mob7461_Leave')
RegisterUnitEvent(7461, 3, 'mob7461_Kill')
RegisterUnitEvent(7461, 4, 'mob7461_Die')
